﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Sys_adminview : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bind();
        }
    }
    protected void gvAdminview_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string cid=e.CommandArgument.ToString().Trim();
        if (e.CommandName == "clear")
        {
            PM.PMSys.setmanager setmanager = new PM.PMSys.setmanager();
            int count = setmanager.Clear_Manager(Int32.Parse(cid), "c");
            if (count > 0)
                bind();
        }
    }
    protected void bind()
    {
        PM.Code.Web.controlbind.BindGridViewPublicProc(gvAdminview, AspNetPager1, "Dict_College", "collegeid", "collegeid,collegename,incharge,inchargeid,inchargename,regisdate", "collegeid", "1=1", true);
    }
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        bind();
    }
}
